package entity;

/**
 * @Author Yenchingcheng
 * @Date 2023/6/13 19:25
 * @Description
 **/
public class Worker{

    private String name;

    public Worker(String name) {
        this.name = name;
    }

    public Worker() {
    }

    public void sleep() {
        System.out.println("工人" + name + "睡觉了。");
    }

    public void wakeUp() {
        System.out.println("工人" + name + "睡醒了。");
    }
}
